﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.address.personal
{
    public partial class menu : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new AddressGroupDao().SelectAll(base.Conn, base.User.Identity.Name);
            this.ViewState["GroupNums"] = table.Rows.Count;
            if (table.Rows.Count > 0)
            {
                this.rptGroup.DataSource = table;
                this.rptGroup.DataBind();
            }
            DataTable table2 = new AddressDao().SelectPY(base.Conn, base.User.Identity.Name);
            this.ViewState["IndexNums"] = table2.Rows.Count;
            if (table2.Rows.Count > 0)
            {
                this.rptPY.DataSource = table2;
                this.rptPY.DataBind();
            }
            else
            {
                this.pnlNoInitial.Visible = true;
            }
        } 

    }
}
